package com.tyqx.service.impl;

import com.tyqx.bean.model.SubServerPlot;
import com.tyqx.mapper.SubServerPlotMapper;
import com.tyqx.service.SubServerPlotService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SubServicePlotServiceImpl implements SubServerPlotService {

    @Resource
    private SubServerPlotMapper subServerPlotMapper;

    @Override
    public boolean addSubServerPlot(SubServerPlot subServerPlot) {
        if(subServerPlotMapper.insert(subServerPlot)>0){
            return true;
        }else{
            return false;
        }
    }

    @Override
    public Integer selectSubServerPlotByProduceDate(String produceDate) {
        return subServerPlotMapper.selectSubServerPlotByProduceDate(produceDate);
    }
}
